import 'package:get/get.dart';
import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/invite_list_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/invite_list_entity.g.dart';

@JsonSerializable()
class InviteListEntity {
	int? page;
	int? pageSize;
	int? total;
	@JSONField(name: "list")
	List<InviteListList>? list;

	InviteListEntity();

	factory InviteListEntity.fromJson(Map<String, dynamic> json) => $InviteListEntityFromJson(json);

	Map<String, dynamic> toJson() => $InviteListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class InviteListList {
	String? id;
	String? email;
	String? nickName;
	int? invitedCount;
	String? inviteCode;

	var isOpen = false.obs;

	var list = <InviteListList>[].obs;

	InviteListList();

	factory InviteListList.fromJson(Map<String, dynamic> json) => $InviteListListFromJson(json);

	Map<String, dynamic> toJson() => $InviteListListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}